package com.qf.mapper;

import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author ztf
 * @Date 20:25 2022/1/11
 **/
public interface SysUserRoleMapper {
    /**
     * 根据用户id查询角色id
     * @param userId
     * @return
     */
    @Select("select role_id from sys_user_role where user_id =#{userid}")
    List<Long> selectRoleIdByUserId(Integer userId);
}
